package pers.corvey.studyjava.dao;

import org.springframework.data.repository.CrudRepository;

import pers.corvey.studyjava.model.User;

public interface UserDAO extends CrudRepository<User, String> {

    User findByAccount(String account);
    long countByAccount(String account);
}
